package com.pearl.user.demo.feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author TD
 * @version 1.0
 * @date 2023/9/22
 */
@FeignClient("order-demo")
public interface OrderFeignClient {

    @GetMapping("/order/getById")
    String getById(@RequestParam("orderId") String orderId);

    @GetMapping("/order/getPort")
    String getPort();
}
